import request from '@/utils/request'

// 查询食堂信息列表
export function listCanteen(query) {
  return request({
    url: '/system/canteen/list',
    method: 'get',
    params: query
  })
}

// 查询食堂信息详细
export function getCanteen(id) {
  return request({
    url: '/system/canteen/' + id,
    method: 'get'
  })
}

// 新增食堂信息
export function addCanteen(data) {
  return request({
    url: '/system/canteen/add',
    method: 'post',
    data: data
  })
}

// 修改食堂信息
export function updateCanteen(data) {
  return request({
    url: '/system/canteen/edit',
    method: 'put',
    data: data
  })
}

// 删除食堂信息
export function delCanteen(id) {
  return request({
    url: '/system/canteen/remove/' + id,
    method: 'delete'
  })
}
